<?php $this->renderPartial('/_include/_system_menu');?>
<div class="main">
    <div class="body">
        <ul class="breadcrumb">
            <li><a href="<?php echo $this->createUrl('default/index')?>">首页</a> <span class="divider">/</span></li>
            <li>管理员列表</a> </li>
        </ul>
        <p class="oper"><a href="<?php echo $this->createUrl('admin/create');?>" class="btn btn-info">添加</a></p>
        <table class="table table-striped">
            <tr>
                <th>管理员名称</th>
                <th>最后登录IP</th>
                <th>最后登录时间</th>
                <th>注册时间</th>
                <th>操作</th>
            </tr>
            <?php foreach($data as $key=>$value):?>
            <tr>
                <td><?php echo $value->admin_name;?></td>
                <td><?php echo $value->admin_last_ip;?></td>
                <td><?php echo $value->admin_last_time;?></td>
                <td><?php echo $value->admin_reg_time;?></td>
                <td>
                    <a href="<?php echo $this->createUrl('admin/update', array('id'=>$value->id));?>" class="btn"><i class="icon-edit"></i></a>
                    <a onclick="return confirm('确认删除？') ? true : false;" href="<?php echo $this->createUrl('admin/delete', array('id'=>$value->id))?>" class="btn"><i class="icon-remove"></i></a>
                </td>
            </tr>
            <?php endforeach?>
        </table>
        <div class="yii-pager">
            <?php $this->widget('BLinkPager',
                array(
                    'pages'=>$pager,
                    'prevPageLabel'=>'上一页',
                    'nextPageLabel'=>'下一页',
                    'header'=>''
                ));?>
        </div>
    </div>
</div>